package com.clt.ess.gjzw.domain.updateProtectKey;

import java.io.Serializable;

//对称密钥的保护密钥更新协议请求业务参数data对象
public class UpdateProtectKeyRequestData implements Serializable {
    //印章编码
    //必须
    private String yzbm;
    //BASE64 编码的电子印章加密证书
    //必须
    private String sealEncCert;
    //BASE64 编码的电子印章签名证书
    //必须
    private String sealSignCert;
    //设备编码
    //必须
    private String deviceCode;
    //BASE64 编码的设备编码密文
    //必须
    private String encDeviceCode;

    /**
     {
         "yzbm": "印章编码",
         "sealEncCert": " BASE64 编码的电子印章加密证书",
         "sealSignCert": " BASE64 编码的电子印章签名证书",
         "deviceCode ": "设备编码",
         "encDeviceCode ": "BASE64 编码的设备编码密文"
     }
     */

    public UpdateProtectKeyRequestData() {
    }

    public UpdateProtectKeyRequestData(String yzbm, String sealEncCert, String sealSignCert, String deviceCode, String encDeviceCode) {
        this.yzbm = yzbm;
        this.sealEncCert = sealEncCert;
        this.sealSignCert = sealSignCert;
        this.deviceCode = deviceCode;
        this.encDeviceCode = encDeviceCode;
    }

    public String getYzbm() {
        return yzbm;
    }

    public void setYzbm(String yzbm) {
        this.yzbm = yzbm;
    }

    public String getSealEncCert() {
        return sealEncCert;
    }

    public void setSealEncCert(String sealEncCert) {
        this.sealEncCert = sealEncCert;
    }

    public String getSealSignCert() {
        return sealSignCert;
    }

    public void setSealSignCert(String sealSignCert) {
        this.sealSignCert = sealSignCert;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getEncDeviceCode() {
        return encDeviceCode;
    }

    public void setEncDeviceCode(String encDeviceCode) {
        this.encDeviceCode = encDeviceCode;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"yzbm\":\"")
                .append(yzbm).append('\"');
        sb.append(",\"sealEncCert\":\"")
                .append(sealEncCert).append('\"');
        sb.append(",\"sealSignCert\":\"")
                .append(sealSignCert).append('\"');
        sb.append(",\"deviceCode\":\"")
                .append(deviceCode).append('\"');
        sb.append(",\"encDeviceCode\":\"")
                .append(encDeviceCode).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
